﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FlowProcessStamp.aspx.cs" Inherits="BEGDC.CC.Web.Workflow.Admin.FlowProcessStamp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="atlas" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Src="~/Common/VelaPagerI.ascx" TagName="VelaPager" TagPrefix="uc" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Process Stamp Management</title>
    <link href="../../css/global.css" type="text/css" rel="stylesheet" />
    <link href="../../css/main.css" type="text/css" rel="stylesheet" />
    <link href="../../css/style.css" type="text/css" rel="stylesheet" />

    <script src="../../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        function showDialog(url) {

            var obj = window.showModalDialog(url, this, 'dialogWidth=800px;dialogHeight=400px;status=0;help=0');
            if (obj == 'reload') {
                //document.Form1.submit();

                window.location.href = window.location.href;
            }
        }
    </script>

</head>
<body>
    <div class="sitemapbox">
        <div class="sitemap">
            <span class="sitemap_root">&raquo;System Tools &nbsp;&raquo;Process Stamp </span>
        </div>
    </div>
    <%-- Empty DIV for clearing float. Can be replaced by CSS ":after". --%>
    <div style="clear: left">
    </div>
    <div class="tabbox purplebg_dark">
        <ul class="tabpos">
            <li><span class="tab_active">Process Stamp 流程图章</span></li></ul>
    </div>
    <%-- Empty DIV for clearing float. Can be replaced by CSS ":after". --%>
    <div style="clear: left">
    </div>
    <form id="form1" runat="server" defaultbutton="btnSearch">
    <atlas:ScriptManager ID="scriptmanager" EnablePartialRendering="true" runat="Server">
        <scripts>
            <atlas:ScriptReference Path="../../js/showtable.js" />
        </scripts>
    </atlas:ScriptManager>
    <div class="padding5">
        <table width="98%">
            <tr class="ev-row2">
                <td class="title">
                    <asp:Label ID="Label2" runat="server" Text="Application No. 申请单号："></asp:Label>
                </td>
                <td class="val">
                    <asp:TextBox ID="txtApplicationNo" runat="server" CssClass="width140 txtbox"></asp:TextBox>
                </td>
                <td class="title">
                    Process Name 流程名称：
                </td>
                <td class="val">
                    <asp:DropDownList ID="ddlProcName" runat="server" CssClass="width146">
                    </asp:DropDownList>
                </td>
                <td class="val txt_align_rgt">
                    <asp:Button ID="btnSearch" runat="server" CssClass="btn" Text="Query (查询)" OnClick="btnSearch_Click" />
                    <asp:Button ID="btnNew" runat="server" CssClass="btn" Text="New (新增)" OnClientClick="showDialog('FlowProcessStampEdit.aspx?sn=' + new Date())" />
                </td>
            </tr>
        </table>
    </div>
    <div class="formbox  padding_top5">
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="false" GridLines="both" Width="100%" EnableEmbeddedSkins="false"
            AutoGenerateColumns="False" OnItemCommand="RadGrid1_ItemCommand">
            <PagerStyle AlwaysVisible="false" />
            <ClientSettings>
                <Selecting AllowRowSelect="true" />
            </ClientSettings>
            <MasterTableView DataKeyNames="ProcessStampID" AutoGenerateColumns="False" Width="100%" CssClass="tablestyle">
                <ItemStyle CssClass="tbody trwhitebg" />
                <AlternatingItemStyle CssClass="tbody trpurplebg" />
                <HeaderStyle CssClass="thead" />
                <Columns>
                    <telerik:GridClientSelectColumn>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridClientSelectColumn>
                    <telerik:GridBoundColumn HeaderText="Process Name<br/>流程名称" UniqueName="ProcName" DataField="ProcName" SortExpression="ProcName">
                        <ItemStyle Height="25" HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Step <br/> 步骤名称" UniqueName="ActivityName" DataField="ActivityName" SortExpression="ActivityName">
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Action 操作" UniqueName="ActionType" DataField="ActionType" SortExpression="ActionType">
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Owner <br/> 拥有人" UniqueName="OwnerEn" DataField="OwnerEn" SortExpression="OwnerEn">
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Delegate <br/>被代理人" UniqueName="DelegateFromEn" DataField="DelegateFromEn" SortExpression="DelegateFromEn">
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Application No. <br/> 申请单号" UniqueName="ApplicationNo" DataField="ApplicationNo" SortExpression="ApplicationNo">
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Created Date <br />创建日期" UniqueName="CreatedDate" DataField="CreatedDate" SortExpression="CreatedDate">
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="TemplateColumn" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="25">
                        <ItemTemplate>
                            <a href="javascript:void(0);" onclick="showDialog('FlowProcessStampEdit.aspx?ID=<%# Eval("ProcessStampID") %>&rdm=<%= System.Guid.NewGuid() %>')">
                                <img src="../../Images/COMEDIT.GIF" alt="edit" style="border: 0;" />
                            </a>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="../../Images/icon_Delete.gif" CommandName="D" ConfirmText="确定删除这个条目吗？\nAre you sure to delete this item?"
                        UniqueName="D" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="25">
                    </telerik:GridButtonColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <div class="padding_lft5 padding_top5">
            <uc:VelaPager Width="100%" ID="ucPager" ParentGridID="RadGrid1" Skin="Vela" runat="server" OnNeedDataSource="ucPager_OnNeedDataSource" />
        </div>
    </div>
    </form>

    <script type="text/javascript">
        $(document).ready(function() {
            $('.trwhitebg').mouseover(function() {
                $(this).removeClass('trwhitebg');
                $(this).addClass('trhover');
            }).mouseout(function() {
                $(this).removeClass('trhover');
                $(this).addClass('trwhitebg')
            });
            $('.trpurplebg').mouseover(function() {
                $(this).removeClass('trpurplebg');
                $(this).addClass('trhover');
            }).mouseout(function() {
                $(this).removeClass('trhover');
                $(this).addClass('trpurplebg');
            });
        });
    </script>

</body>
</html>